<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($System_namex); ?></title>
<link href="__PUBLIC__/Css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Base.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/prototype.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/mootools.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Ajax/ThinkAjax.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Form/CheckForm.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/common.js\"></sc"+"ript>")</script>
<!--[if IE 6]>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/DD_belatedPNG_0.0.8a-min.js\"></sc"+"ript>")</script>
<script>
  DD_belatedPNG.fix('#login_box,.l-logo');  // IE6，PNG透明
</script>
<![endif]-->
<body>

<div style="width:100%;" align="center">
<form method='post' name="login" id="form1" onsubmit="return false">
<table border="0" cellspacing="0" cellpadding="0" align="center"  class="login_bg">
  <tr>
    <td align="center" valign="bottom">
    <table width="90%" cellpadding="0" cellspacing="0" class="login_tab">
        <tr>
            <td height="50" width="10%" align="right">用户：</td>
            <td width="15%"><input name="account" id="account" type="text" maxlength="20" class="ipt_text" /></td>
            <td width="10%" align="right">密　码：</td>
            <td width="15%"><input name="password" id="password" type="password" maxlength="20" class="ipt_text" /></td>
            <td width="10%" align="right">验证码：</td>
            <td width="20%"><input name="verify" id="verify" type="text" onKeyDown="keydown(event)" check="Require" warning="请输入验证码" maxlength="4" class="ipt_text" size="6"/>
            <img id="verifyImg" src="__URL__/verify/" width="55" onClick="fleshVerify()" border="0" alt="点击刷新验证码" style="cursor:pointer" align="absmiddle" />
            </td>
			
			 <!--<td width="8%" align="right">
			  <select name="lang">
			 <option selected="selected" value="0">中文</option>
			  <option value="1">English</option>
			 </select></td>
			  <td width="4%" align="right"></td>-->
			
            <td width="8%"><input type="hidden" name="ajax" value="1"><input type="submit"   name="button" value=" 登陆 " title="登陆" onClick="ThinkAjax.sendForm('form1','__URL__/checkLogin/',loginHandle,'result')" />
            </td>
        </tr>
    </table>
    </td>
  </tr>
</table>
<table width="900" height="30" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><div class="error"><span id="result"></span></div></td>
  </tr>
</table>
</form>
</div>
</body>
</html>
<script language="JavaScript">
<!--
var PUBLIC	 =	 '__PUBLIC__';
ThinkAjax.image = [	 '__PUBLIC__/Images/loading2.gif', '__PUBLIC__/Images/ok.gif','__PUBLIC__/Images/update.gif' ]
ThinkAjax.updateTip	=	'登录中～';
function loginHandle(data,status){
if (status==1)
{
$('result').innerHTML	=	'<span style="color:blue"><img SRC="__PUBLIC__/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > 登录成功！3 秒后跳转～</span>';
$('form1').reset();
window.location = '__URL__';
}
}
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	ThinkAjax.sendForm('form1','__URL__/checkLogin/',loginHandle,'result');
	}
}
function fleshVerify(type){
//重载验证码
var timenow = new Date().getTime();
if (type)
{
$('verifyImg').src= '__URL__/verify/adv/1/'+timenow;
}else{
$('verifyImg').src= '__URL__/verify/'+timenow;
}

}

//-->
</script>